/* finesse · redesign · preserve PIKA components and colors · modular split workspace */
.ds-modules{grid-template-rows:66px minmax(0,1fr)}
.ds-modules [hidden]{display:none!important}
.ds-modules .ds-body{--ds-chat-default:48%}
.ds-modules .ds-chat{grid-template-rows:60px minmax(0,1fr);position:relative}
.ds-modules .iw-setting-buttons .ds-sketch-output-menu .iw-choices button[aria-pressed="true"]{background:#fff}
.ds-sketch-output-menu .iw-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.ds-sketch-output-menu .iw-options button{min-width:0;white-space:normal;min-height:40px}
.iw-popover.ds-sketch-style-menu .iw-options{display:flex;flex-wrap:wrap;overflow:visible}
.iw-popover.ds-sketch-style-menu .iw-options button{flex:1 0 auto;min-width:max-content;white-space:nowrap;padding-inline:8px}
@media(hover:hover) and (pointer:fine){.ds-modules .iw-setting-buttons .ds-sketch-output-menu .iw-choices button:hover:not(:disabled):not([aria-pressed=true]){background:var(--ui-option-hover-bg)}}
/* Only this preview dialog changes; other site deletion dialogs stay untouched. */
@keyframes ds-select-nudge{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
.ds-mode-control+.ui-select-menu>.ui-select-menu-title{font-size:10px;margin:0 0 8px}
.ds-jewelry-menu{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:max-content;max-width:calc(100vw - 24px);overflow:auto;padding:clamp(8px,2vw,16px);border:1px solid #dfe1db;border-radius:16px;background:#fff;box-shadow:0 14px 40px #1c221b20;color:#62695f;font:inherit}
.ds-jewelry-menu fieldset{border:0;padding:0;margin:0;min-width:0}.ds-jewelry-menu fieldset+fieldset{margin-top:16px}
.ds-jewelry-menu legend{font-size:10px;color:#62695f;padding:0;margin-bottom:8px}
.ds-jewelry-options{display:flex;gap:clamp(1px,calc(1vw - 2px),4px);flex-wrap:wrap;padding:4px;border-radius:12px;background:#f5f5f2}
.ds-modules .ds-jewelry-options button{flex:1 1 auto;min-width:max-content;min-height:36px;padding:8px clamp(1px,calc(4vw - 12.8px),12px);white-space:nowrap;border:0;border-radius:9px;background:transparent;color:#62695f;font-size:10px;font-weight:400}
.ds-modules .ds-jewelry-options button[aria-checked=true]{background:#fff;color:#1d231d;box-shadow:0 1px 4px #1d231d0e}
.ds-modules .ds-jewelry-options button[aria-checked=true]:hover:not(:disabled){background:#fff}
@media(hover:hover) and (pointer:fine){.ds-modules .ds-jewelry-options button:hover:not(:disabled):not([aria-disabled=true]):not([aria-checked=true]){background:var(--ui-option-hover-bg)}}
.ds-jewelry-options button:focus-visible{outline:2px solid #62695f;outline-offset:1px}
@media(max-width:600px){.ds-modules .ds-jewelry-options button{flex:1 0 auto;min-width:44px}}
.ds-jewelry-menu p[role=alert]{margin:10px 0 0;font-size:10px;color:#c13f38}
.ds-mode-panel{height:100%;min-height:0;min-width:0;position:relative;overflow:hidden}
.ds-modules .ds-text-workbench{display:block;background:var(--ds-bg)}
.ds-modules .ds-chat-scroll{height:100%;overflow-y:auto;padding:18px 18px var(--composer-space,220px);scroll-padding-bottom:var(--composer-space,220px)}
.ds-modules .ds-chat-scroll.is-empty{display:flex;flex-direction:column}
.ds-chat-intro.is-empty{flex:1 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-width:0}
.ds-chat-intro.is-empty .ds-module-empty{width:100%;padding:0 12px}
.ds-chat-intro.is-empty .ds-service-note{width:100%;margin:0}
.ds-module-empty{padding:40px 12px;color:var(--ds-muted);text-align:center;line-height:1.8}
.ds-modules .ds-module-empty h2{font-size:14px;font-weight:500;color:#4b504a}
.ds-modules .ds-module-empty p{font-size:10px;color:#92968f;line-height:1.8}
.ds-modules .ds-module-empty p{font-size:12px}
.ds-section-evidence{margin:12px 0}.ds-section-evidence>button{margin:0 6px 6px 0;font-size:10px}
.ds-evidence-items{display:flex;flex-wrap:wrap;gap:8px}.ds-evidence-items figure{margin:0 0 8px;width:min(180px,100%);overflow:hidden}
.ds-evidence-items :is(img,video){width:100%;height:100px;object-fit:contain;border-radius:8px;background:#fff}
.ds-evidence-items figcaption{font-size:10px;overflow-wrap:anywhere}.ds-evidence-items figcaption button{padding:2px 6px;min-height:24px;margin-left:4px}
.ds-child-loading{padding:24px;line-height:1.8}
.ds-modules .iw-embedded{height:100%;background:var(--ds-bg)}
.ds-modules .iw-embedded .iw-history-inner{padding:14px 16px var(--composer-space)}
.ds-modules .iw-embedded .iw-composer-wrap{left:12px;right:12px;bottom:12px;width:auto;max-width:none}
.ds-modules .iw-composer{padding:12px;border-radius:18px}
.ds-modules .iw-toolbar{align-items:center;flex-wrap:nowrap}
.ds-modules .iw-setting-buttons{flex-wrap:nowrap;gap:6px}
.ds-modules .iw-setting-buttons button{font-size:12px;min-height:36px;padding:0 8px}
.ds-modules .iw-empty{min-height:240px;padding:24px 8px}
.ds-modules .iw-prompt-row{gap:12px}
.ds-modules .iw-workbench .iw-stack,.ds-modules .iw-workbench .iw-stack:hover:not(:disabled),.ds-modules .iw-workbench .iw-stack:active:not(:disabled){border:0;box-shadow:none}
.ds-modules .iw-workbench .iw-stack-empty,.ds-modules .iw-workbench .iw-stack-empty>span{color:#757b72;font-weight:400}
.ds-modules .iw-stack-empty.is-icon-only{position:absolute;inset:0;display:grid;place-items:center}
.ds-modules .iw-workbench .iw-stack.is-empty:has(.is-icon-only){transform-origin:center;transition:transform 180ms cubic-bezier(.2,.8,.2,1)}
@media(hover:hover) and (pointer:fine){.ds-modules .iw-workbench .iw-stack.is-empty:has(.is-icon-only):hover:not(:disabled){transform:scale(1.06)}}
.ds-modules .iw-workbench .iw-stack.is-empty:has(.is-icon-only):active:not(:disabled){transform:scale(.94);transition-duration:90ms}
@media(prefers-reduced-motion:reduce){.ds-modules .iw-workbench .iw-stack.is-empty:has(.is-icon-only),.ds-modules .iw-workbench .iw-stack.is-empty:has(.is-icon-only):is(:hover,:active):not(:disabled){transform:none;transition:none}}
.ds-modules .iw-prompt-row textarea{font-size:14px;min-width:0;line-height:1.8}
.ds-modular-composer{position:absolute;left:12px;right:12px;bottom:12px;z-index:10;background:transparent;border:0;padding:0}
.ds-modular-composer{--ds-action-inset:13px}
.ds-modular-composer.is-compact{--ds-action-inset:17px}
.ds-modular-composer .iw-composer{max-height:60dvh;overflow-y:auto}
.ds-modules .ds-text-compact{width:100%;min-height:70px;padding:12px 16px;gap:16px;border-radius:18px;background:var(--ds-bg);box-shadow:var(--iw-shadow);justify-content:space-between}
.ds-text-compact span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:14px;min-width:0}
.ds-modules .ds-modular-composer .rp-editor,.ds-modules .ds-text-compact span{font-size:12px}
.ds-text-compact svg{flex-shrink:0}
.ds-modules .iw-workbench .ds-text-compact{cursor:text}
.ds-modules .iw-workbench .ds-text-compact:hover:not(:disabled),.ds-modules .iw-workbench .ds-text-compact:active:not(:disabled){background:var(--ds-bg);transform:none;box-shadow:var(--iw-shadow)}
@media(hover:hover) and (pointer:fine){.ds-modules .ds-text-compact:hover:not(:disabled) .iw-compact-arrow:not([data-disabled=true]){transform:scale(1.04)}}
.ds-modules .ds-text-compact:active:not(:disabled) .iw-compact-arrow:not([data-disabled=true]){transform:scale(.96);transition-duration:90ms}
@media(prefers-reduced-motion:reduce){.ds-modules .iw-workbench .iw-composer-submit,.ds-modules .iw-workbench .iw-compact-arrow{transition:none!important;transform:none!important}}
.ds-modules .ds-text-bottom{position:absolute;bottom:calc(100% + 12px);right:calc(var(--ds-action-inset) - 1.5px);width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;background:var(--ds-bg);box-shadow:var(--iw-shadow)}
.ds-modules .rp-editor:empty::before,.ds-modules .iw-composer textarea::placeholder,.ds-modules .is-placeholder{font-size:12px;color:#92968e}
.ds-modules .iw-tools-scroll{position:relative;flex:1 1 0;min-width:0}
.ds-modules .iw-tools-viewport{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:4px 0;scroll-padding-inline:40px}
.ds-modules .iw-tools-scroll{--tools-fade-left:0px;--tools-fade-right:0px}
.ds-modules .iw-tools-scroll[data-left=true]{--tools-fade-left:36px}
.ds-modules .iw-tools-scroll[data-right=true]{--tools-fade-right:36px}
.ds-modules .iw-tools-scroll:is([data-left=true],[data-right=true])>.iw-tools-viewport{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--tools-fade-left),#000 calc(100% - var(--tools-fade-right)),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 var(--tools-fade-left),#000 calc(100% - var(--tools-fade-right)),transparent 100%)}
.iw-tools-viewport::-webkit-scrollbar{display:none}
.ds-modules .iw-tools-viewport>.iw-setting-buttons{width:max-content;min-width:100%;flex:none;overflow:visible;padding-inline:3px}
.ds-modules .iw-tools-arrow{position:absolute;top:50%;width:32px;height:36px;min-height:36px;padding:0;z-index:2;border:0;border-radius:9px;background:#eceee8;color:var(--ds-ink);transform:translateY(-50%);opacity:0;pointer-events:none;transition:opacity .16s ease,background-color .16s ease}
.ds-modules .iw-tools-scroll:hover .iw-tools-arrow,.ds-modules .iw-tools-arrow:focus-visible{opacity:1;pointer-events:auto}
.ds-modules .iw-tools-arrow.is-left{left:0;box-shadow:none}
.ds-modules .iw-tools-arrow.is-right{right:0;box-shadow:none}
.ds-modules .iw-tools-arrow:hover:not(:disabled){background:#f5f6f2;transform:translateY(-50%)}
.ds-modules .iw-tools-arrow:active:not(:disabled){background:#fff;transform:translateY(-50%)}
@media(hover:none){.ds-modules .iw-tools-arrow{opacity:1;pointer-events:auto}}
.ds-modules .iw-tools-scroll button:focus-visible{outline:2px solid #78611c;outline-offset:1px}
.ds-modules .vw-toolbar-space{display:none}
@media(prefers-reduced-motion:reduce){.ds-modules .iw-tools-arrow{transition:none}.ds-modules .iw-tools-arrow:hover,.ds-modules .iw-tools-arrow:active{transform:translateY(-50%)}}
.ds-modular-composer textarea{width:100%;min-height:88px;max-height:180px;resize:vertical;border:0;background:transparent;padding:4px;font:inherit;box-shadow:none}
.ds-mode-control{height:36px;border:1px solid var(--ds-line,var(--iw-line));border-radius:10px;background:var(--ds-bg,var(--iw-surface));color:inherit;font:inherit;font-size:12px;padding:0 26px 0 10px;max-width:100%;cursor:pointer}
.ds-mode-control:focus-visible,.ds-modular-composer textarea:focus-visible{outline:2px solid var(--ds-muted);outline-offset:2px}
.ds-document-editor{width:min(800px,calc(100vw - 32px))}
.ds-document-editor label{display:grid;gap:8px;margin-top:16px;font-size:13px}
.ds-document-editor :is(input,textarea){width:100%;font:inherit;border:1px solid var(--iw-line);border-radius:10px;padding:12px;background:var(--iw-surface);color:inherit;line-height:1.8}
.ds-document-editor footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:16px}
.ds-board-lock{border:0;margin:0;padding:0;min-width:0}
.ds-direction-board header p{font-size:12px;line-height:1.7;color:var(--iw-muted,#62695f)}
.ds-board-reference-strip{display:flex;align-items:center;gap:10px;overflow:auto;margin:16px 0}.ds-board-reference-strip img{width:100px;height:86px;object-fit:contain;border-radius:8px;background:var(--iw-surface)}
.ds-board-sections{display:grid;gap:8px;margin:18px 0}.ds-board-sections details{border:1px solid var(--iw-line);border-radius:10px;padding:10px 12px}
.ds-board-sections summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;min-height:28px;align-items:center}.ds-board-sections small{color:var(--iw-muted,#62695f);font-weight:400}.ds-direction-board h2{font-size:20px}.ds-direction-board h3{font-size:15px}
.ds-board-pieces fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.ds-board-pieces fieldset{margin:12px 0;border:1px solid var(--iw-line);border-radius:10px}.ds-board-pieces label{margin:0}.ds-board-text{white-space:pre-wrap;font:inherit;line-height:1.7;overflow-wrap:anywhere}
.ds-direction-board :is(input,textarea,button,summary):focus-visible{outline:2px solid #78611c;outline-offset:2px}
@media(max-width:520px){.ds-board-pieces fieldset{grid-template-columns:1fr}.ds-direction-board :is(input,textarea){font-size:16px}}
@media(max-width:760px){.ds-modules{grid-template-rows:56px 48px minmax(0,1fr)}.ds-modules .iw-embedded .iw-composer-wrap,.ds-modular-composer{left:8px;right:8px;bottom:8px}.ds-modules .ds-chat-scroll{padding:14px 14px var(--composer-space,220px)}}
